/**
 * 作者: wgx
 * 日期: 2024-11-13 16:42:19
 * 备注: 派对的座位列表
 */
package com.motu.monstercity.server.game.userdata;

import com.motu.monstercity.server.game.logic.FeastManager;
import com.motu.vertx.module.utility.toolset.TimeUtils;

public class ServerFeastSeat extends ServerFeastSeatModel {
    public ServerFeastSeat() {
        super();
    }

    public ServerFeastSeat(long feastId, UserInfo userInfo, int position, int joinId, long addTime, boolean isRobot) {
        super();
        putFeastId(feastId);
        putUserId(isRobot ? FeastManager.getRobotUserId(position) : userInfo.getId());
        putSeatPosition(position);
        putUserName(isRobot ? "" : userInfo.getUserName());
        putIcon(isRobot ? "" : userInfo.getIcon());
        putLevel(isRobot ? 1 : userInfo.getLevel());
        putVip(isRobot ? 0 : userInfo.getVip());
        putJoinId(joinId);
        putAddTime(addTime);
    }
}
